import request from '../../utils/request'

// 登录接口
export const reqLogin =(data:any)=>request.post(`/app-dev/api/user/passport/login`,data)

// 注册接口  data包括手机号，密码和验证码
export const reqRegister = (data:any)=>request.post(`/app-dev/api/user/passport/register`,data)

// 请求获取验证码
export const reqGetCode = (phone:any)=> request.get(`/app-dev/api/user/passport/sendCode/${phone}`)

// 获取个人信息
export const reqUserInfo = ()=>request.get(`/app-dev/api/user/passport/auth/getUserInfo`)

// 退出登录
export const reqLogout =()=>request.get(`/app-dev/api/user/passport/logout`)
